/**
 * Choicesoft.com.cn Inc.
 * Copyright (c) 2004-2018 All Rights Reserved.
 */
package com.chen.ssh;

/**
 * @author chenxubing
 * @version $Id: NumberUtils.java, v 0.1 2018-12-05 1:09 PM chenxubing Exp $$
 */
public final class NumberUtils {
    private NumberUtils(){
        throw new AssertionError();
    }

    public static int toInt(String str){
        try {
            return Integer.parseInt(str.trim());
        }catch (Exception e){
            return 0;
        }
    }
}
